import request from '@/utils/request'

// 优惠券计划列表查询
export function couponList (data) {
  return request({
    url: '/tuoApi/tuoApi/coupon/list',
    method: 'post',
    data
  })
}

// 根据优惠券码查询所有的孩子
export function selectChildByCard (params) {
  return request({
    url: '/tuoApi/tuoApi/coupon/selectChildByCard',
    method: 'get',
    params
  })
}

// 根据优惠券码查询所有的孩子
export function couponDetails (params) {
  return request({
    url: '/tuoApi/tuoApi/coupon/details',
    method: 'get',
    params
  })
}

// 优惠券一键推送
export function pushChildByCard (data) {
  return request({
    url: '/tuoApi/tuoApi/coupon/pushChildByCard',
    method: 'post',
    data
  })
}
